<?php

use yii\helpers\Html;
use yii\widgets\DetailView;
use kartik\grid\GridView;
use common\models\customInfo\CustomInfo;
/* @var $this yii\web\View */
/* @var $model common\models\Activity\Activity */

$this->title = '';
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', '活动列表'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<?php $this->beginBlock('siderbar'); ?>
<?= $this->render('//layouts/act-menu') ?>
<?php $this->endBlock(); ?>
<div class="activity-view">

    <!-- <h1><?= Html::encode($this->title) ?></h1> -->

    <p>
        <?= Html::a(Yii::t('app', 'Update'), ['update', 'id' => $model->ac_id], ['class' => 'btn btn-primary']) ?>
        <?= Html::a(Yii::t('app', 'Delete'), ['delete', 'id' => $model->ac_id], [
            'class' => 'btn btn-danger',
            'data' => [
                'confirm' => Yii::t('app', 'Are you sure you want to delete this item?'),
                'method' => 'post',
            ],
        ]) ?>
    </p>

    <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
            'ac_id',
            'ac_name',
            [
                'attribute' => 'la_id',
                'value' => $model->getLabel($model->la_id),
            ],
            'ac_desciption',
            'start_time',
            'end_time',
            'ac_man',
            [
                'attribute' => 'g_id',
                'value' => $model->getGuest($model->g_id),
            ],

            [
                'attribute' => 'cu_id',
                'value' => $model->getCum($model->cu_id),
            ],
            'ac_baoming',
            'ac_phone',
            [
                'attribute' => 'ac_number',
                'value' => CustomInfo::find()->where(['ac_id' => $model->ac_id])->count(),
            ],
			'ac_cost',
            'ac_status',
            'ac_display',
            'ac_arrange',
            'ac_field',
            'ac_sponsor',
            
        ],
    ]) ?>

</div>
